from multiprocessing import Pool
import time

global counter

def f(x):
    global counter
    print "Start Task" + x + " : " + time.ctime()
    time.sleep(counter)
    print "Stop Task" + str(x) + " : " + time.ctime()
    counter += 1

counter = 1
p = Pool(5)
p.map(f, ["a","b","c"])

